package com.teamall.web.xxgl.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class CodeAidReportDataArg {
    private String pk_name = "REPORT_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<CodeAidReportDataCriteria> oredCriteria;

    public CodeAidReportDataArg() {
        oredCriteria = new ArrayList<CodeAidReportDataCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<CodeAidReportDataCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(CodeAidReportDataCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public CodeAidReportDataCriteria or() {
    	CodeAidReportDataCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public CodeAidReportDataCriteria createCriteria() {
    	CodeAidReportDataCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected CodeAidReportDataCriteria createCriteriaInternal() {
    	CodeAidReportDataCriteria criteria = new CodeAidReportDataCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<CodeAidReportDataCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<CodeAidReportDataCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<CodeAidReportDataCriterion> getAllCriteria() {
            return criteria;
        }

        public List<CodeAidReportDataCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new CodeAidReportDataCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeAidReportDataCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeAidReportDataCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeAidReportDataCriterion(condition, value1, value2));
        }

        public CodeAidReportDataCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (CodeAidReportDataCriteria) this;
        }
        public CodeAidReportDataCriteria andReportIdIsNull() {
            addCriterion("REPORT_ID is null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdIsNotNull() {
            addCriterion("REPORT_ID is not null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdEqualTo(Integer value) {
            addCriterion("REPORT_ID =", value, "REPORT_ID");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdNotEqualTo(Integer value) {
            addCriterion("REPORT_ID <>", value, "REPORT_ID");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdGreaterThan(Integer value) {
            addCriterion("REPORT_ID >", value, "REPORT_ID");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("REPORT_ID >=", value, "REPORT_ID");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdLessThan(Integer value) {
            addCriterion("REPORT_ID <", value, "REPORT_ID");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdLessThanOrEqualTo(Integer value) {
            addCriterion("REPORT_ID <=", value, "REPORT_ID");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdLike(Integer value) {
            addCriterion("REPORT_ID like ", value, "REPORT_ID", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdNotLike(Integer value) {
            addCriterion("REPORT_ID  not like ", value, "REPORT_ID", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdLeftLike(Integer value) {
            addCriterion("REPORT_ID like ", value, "REPORT_ID", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdNotLeftLike(Integer value) {
            addCriterion("REPORT_ID  not like ", value, "REPORT_ID", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdRightLike(Integer value) {
            addCriterion("REPORT_ID like ", value, "REPORT_ID", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdNotRightLike(Integer value) {
            addCriterion("REPORT_ID  not like ", value, "REPORT_ID", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdIn(List<Integer> values) {
            addCriterion("REPORT_ID  in ", values, "REPORT_ID");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdNotIn(List<Integer> values) {
            addCriterion("REPORT_ID not in ", values, "REPORT_ID");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_ID between ", value1, value2, "REPORT_ID");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportIdNotBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_ID not between ", value1, value2, "REPORT_ID");
            return (CodeAidReportDataCriteria) this;
        }
        public CodeAidReportDataCriteria andReportYearIsNull() {
            addCriterion("REPORT_YEAR is null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearIsNotNull() {
            addCriterion("REPORT_YEAR is not null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearEqualTo(Integer value) {
            addCriterion("REPORT_YEAR =", value, "REPORT_YEAR");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearNotEqualTo(Integer value) {
            addCriterion("REPORT_YEAR <>", value, "REPORT_YEAR");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearGreaterThan(Integer value) {
            addCriterion("REPORT_YEAR >", value, "REPORT_YEAR");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearGreaterThanOrEqualTo(Integer value) {
            addCriterion("REPORT_YEAR >=", value, "REPORT_YEAR");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearLessThan(Integer value) {
            addCriterion("REPORT_YEAR <", value, "REPORT_YEAR");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearLessThanOrEqualTo(Integer value) {
            addCriterion("REPORT_YEAR <=", value, "REPORT_YEAR");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearLike(Integer value) {
            addCriterion("REPORT_YEAR like ", value, "REPORT_YEAR", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearNotLike(Integer value) {
            addCriterion("REPORT_YEAR  not like ", value, "REPORT_YEAR", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearLeftLike(Integer value) {
            addCriterion("REPORT_YEAR like ", value, "REPORT_YEAR", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearNotLeftLike(Integer value) {
            addCriterion("REPORT_YEAR  not like ", value, "REPORT_YEAR", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearRightLike(Integer value) {
            addCriterion("REPORT_YEAR like ", value, "REPORT_YEAR", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearNotRightLike(Integer value) {
            addCriterion("REPORT_YEAR  not like ", value, "REPORT_YEAR", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearIn(List<Integer> values) {
            addCriterion("REPORT_YEAR  in ", values, "REPORT_YEAR");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearNotIn(List<Integer> values) {
            addCriterion("REPORT_YEAR not in ", values, "REPORT_YEAR");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_YEAR between ", value1, value2, "REPORT_YEAR");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportYearNotBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_YEAR not between ", value1, value2, "REPORT_YEAR");
            return (CodeAidReportDataCriteria) this;
        }
        public CodeAidReportDataCriteria andReportMonthIsNull() {
            addCriterion("REPORT_MONTH is null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthIsNotNull() {
            addCriterion("REPORT_MONTH is not null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthEqualTo(Integer value) {
            addCriterion("REPORT_MONTH =", value, "REPORT_MONTH");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthNotEqualTo(Integer value) {
            addCriterion("REPORT_MONTH <>", value, "REPORT_MONTH");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthGreaterThan(Integer value) {
            addCriterion("REPORT_MONTH >", value, "REPORT_MONTH");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthGreaterThanOrEqualTo(Integer value) {
            addCriterion("REPORT_MONTH >=", value, "REPORT_MONTH");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthLessThan(Integer value) {
            addCriterion("REPORT_MONTH <", value, "REPORT_MONTH");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthLessThanOrEqualTo(Integer value) {
            addCriterion("REPORT_MONTH <=", value, "REPORT_MONTH");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthLike(Integer value) {
            addCriterion("REPORT_MONTH like ", value, "REPORT_MONTH", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthNotLike(Integer value) {
            addCriterion("REPORT_MONTH  not like ", value, "REPORT_MONTH", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthLeftLike(Integer value) {
            addCriterion("REPORT_MONTH like ", value, "REPORT_MONTH", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthNotLeftLike(Integer value) {
            addCriterion("REPORT_MONTH  not like ", value, "REPORT_MONTH", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthRightLike(Integer value) {
            addCriterion("REPORT_MONTH like ", value, "REPORT_MONTH", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthNotRightLike(Integer value) {
            addCriterion("REPORT_MONTH  not like ", value, "REPORT_MONTH", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthIn(List<Integer> values) {
            addCriterion("REPORT_MONTH  in ", values, "REPORT_MONTH");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthNotIn(List<Integer> values) {
            addCriterion("REPORT_MONTH not in ", values, "REPORT_MONTH");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_MONTH between ", value1, value2, "REPORT_MONTH");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportMonthNotBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_MONTH not between ", value1, value2, "REPORT_MONTH");
            return (CodeAidReportDataCriteria) this;
        }
        public CodeAidReportDataCriteria andReportWeekIsNull() {
            addCriterion("REPORT_WEEK is null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekIsNotNull() {
            addCriterion("REPORT_WEEK is not null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekEqualTo(Integer value) {
            addCriterion("REPORT_WEEK =", value, "REPORT_WEEK");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekNotEqualTo(Integer value) {
            addCriterion("REPORT_WEEK <>", value, "REPORT_WEEK");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekGreaterThan(Integer value) {
            addCriterion("REPORT_WEEK >", value, "REPORT_WEEK");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekGreaterThanOrEqualTo(Integer value) {
            addCriterion("REPORT_WEEK >=", value, "REPORT_WEEK");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekLessThan(Integer value) {
            addCriterion("REPORT_WEEK <", value, "REPORT_WEEK");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekLessThanOrEqualTo(Integer value) {
            addCriterion("REPORT_WEEK <=", value, "REPORT_WEEK");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekLike(Integer value) {
            addCriterion("REPORT_WEEK like ", value, "REPORT_WEEK", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekNotLike(Integer value) {
            addCriterion("REPORT_WEEK  not like ", value, "REPORT_WEEK", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekLeftLike(Integer value) {
            addCriterion("REPORT_WEEK like ", value, "REPORT_WEEK", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekNotLeftLike(Integer value) {
            addCriterion("REPORT_WEEK  not like ", value, "REPORT_WEEK", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekRightLike(Integer value) {
            addCriterion("REPORT_WEEK like ", value, "REPORT_WEEK", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekNotRightLike(Integer value) {
            addCriterion("REPORT_WEEK  not like ", value, "REPORT_WEEK", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekIn(List<Integer> values) {
            addCriterion("REPORT_WEEK  in ", values, "REPORT_WEEK");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekNotIn(List<Integer> values) {
            addCriterion("REPORT_WEEK not in ", values, "REPORT_WEEK");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_WEEK between ", value1, value2, "REPORT_WEEK");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportWeekNotBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_WEEK not between ", value1, value2, "REPORT_WEEK");
            return (CodeAidReportDataCriteria) this;
        }
        public CodeAidReportDataCriteria andReportDateIsNull() {
            addCriterion("REPORT_DATE is null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateIsNotNull() {
            addCriterion("REPORT_DATE is not null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateEqualTo(Date value) {
            addCriterion("REPORT_DATE =", value, "REPORT_DATE");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateNotEqualTo(Date value) {
            addCriterion("REPORT_DATE <>", value, "REPORT_DATE");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateGreaterThan(Date value) {
            addCriterion("REPORT_DATE >", value, "REPORT_DATE");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateGreaterThanOrEqualTo(Date value) {
            addCriterion("REPORT_DATE >=", value, "REPORT_DATE");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateLessThan(Date value) {
            addCriterion("REPORT_DATE <", value, "REPORT_DATE");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateLessThanOrEqualTo(Date value) {
            addCriterion("REPORT_DATE <=", value, "REPORT_DATE");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateLike(Date value) {
            addCriterion("REPORT_DATE like ", value, "REPORT_DATE", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateNotLike(Date value) {
            addCriterion("REPORT_DATE  not like ", value, "REPORT_DATE", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateLeftLike(Date value) {
            addCriterion("REPORT_DATE like ", value, "REPORT_DATE", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateNotLeftLike(Date value) {
            addCriterion("REPORT_DATE  not like ", value, "REPORT_DATE", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateRightLike(Date value) {
            addCriterion("REPORT_DATE like ", value, "REPORT_DATE", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateNotRightLike(Date value) {
            addCriterion("REPORT_DATE  not like ", value, "REPORT_DATE", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateIn(List<Date> values) {
            addCriterion("REPORT_DATE  in ", values, "REPORT_DATE");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateNotIn(List<Date> values) {
            addCriterion("REPORT_DATE not in ", values, "REPORT_DATE");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateBetween(Date value1, Date value2) {
            addCriterion("REPORT_DATE between ", value1, value2, "REPORT_DATE");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDateNotBetween(Date value1, Date value2) {
            addCriterion("REPORT_DATE not between ", value1, value2, "REPORT_DATE");
            return (CodeAidReportDataCriteria) this;
        }
        public CodeAidReportDataCriteria andReportDepartmentIsNull() {
            addCriterion("REPORT_DEPARTMENT is null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentIsNotNull() {
            addCriterion("REPORT_DEPARTMENT is not null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentEqualTo(String value) {
            addCriterion("REPORT_DEPARTMENT =", value, "REPORT_DEPARTMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentNotEqualTo(String value) {
            addCriterion("REPORT_DEPARTMENT <>", value, "REPORT_DEPARTMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentGreaterThan(String value) {
            addCriterion("REPORT_DEPARTMENT >", value, "REPORT_DEPARTMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentGreaterThanOrEqualTo(String value) {
            addCriterion("REPORT_DEPARTMENT >=", value, "REPORT_DEPARTMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentLessThan(String value) {
            addCriterion("REPORT_DEPARTMENT <", value, "REPORT_DEPARTMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentLessThanOrEqualTo(String value) {
            addCriterion("REPORT_DEPARTMENT <=", value, "REPORT_DEPARTMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentLike(String value) {
            addCriterion("REPORT_DEPARTMENT like ", value, "REPORT_DEPARTMENT", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentNotLike(String value) {
            addCriterion("REPORT_DEPARTMENT  not like ", value, "REPORT_DEPARTMENT", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentLeftLike(String value) {
            addCriterion("REPORT_DEPARTMENT like ", value, "REPORT_DEPARTMENT", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentNotLeftLike(String value) {
            addCriterion("REPORT_DEPARTMENT  not like ", value, "REPORT_DEPARTMENT", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentRightLike(String value) {
            addCriterion("REPORT_DEPARTMENT like ", value, "REPORT_DEPARTMENT", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentNotRightLike(String value) {
            addCriterion("REPORT_DEPARTMENT  not like ", value, "REPORT_DEPARTMENT", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentIn(List<String> values) {
            addCriterion("REPORT_DEPARTMENT  in ", values, "REPORT_DEPARTMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentNotIn(List<String> values) {
            addCriterion("REPORT_DEPARTMENT not in ", values, "REPORT_DEPARTMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentBetween(String value1, String value2) {
            addCriterion("REPORT_DEPARTMENT between ", value1, value2, "REPORT_DEPARTMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportDepartmentNotBetween(String value1, String value2) {
            addCriterion("REPORT_DEPARTMENT not between ", value1, value2, "REPORT_DEPARTMENT");
            return (CodeAidReportDataCriteria) this;
        }
        public CodeAidReportDataCriteria andReportStaffIsNull() {
            addCriterion("REPORT_STAFF is null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffIsNotNull() {
            addCriterion("REPORT_STAFF is not null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffEqualTo(Integer value) {
            addCriterion("REPORT_STAFF =", value, "REPORT_STAFF");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffNotEqualTo(Integer value) {
            addCriterion("REPORT_STAFF <>", value, "REPORT_STAFF");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffGreaterThan(Integer value) {
            addCriterion("REPORT_STAFF >", value, "REPORT_STAFF");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffGreaterThanOrEqualTo(Integer value) {
            addCriterion("REPORT_STAFF >=", value, "REPORT_STAFF");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffLessThan(Integer value) {
            addCriterion("REPORT_STAFF <", value, "REPORT_STAFF");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffLessThanOrEqualTo(Integer value) {
            addCriterion("REPORT_STAFF <=", value, "REPORT_STAFF");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffLike(Integer value) {
            addCriterion("REPORT_STAFF like ", value, "REPORT_STAFF", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffNotLike(Integer value) {
            addCriterion("REPORT_STAFF  not like ", value, "REPORT_STAFF", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffLeftLike(Integer value) {
            addCriterion("REPORT_STAFF like ", value, "REPORT_STAFF", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffNotLeftLike(Integer value) {
            addCriterion("REPORT_STAFF  not like ", value, "REPORT_STAFF", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffRightLike(Integer value) {
            addCriterion("REPORT_STAFF like ", value, "REPORT_STAFF", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffNotRightLike(Integer value) {
            addCriterion("REPORT_STAFF  not like ", value, "REPORT_STAFF", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffIn(List<Integer> values) {
            addCriterion("REPORT_STAFF  in ", values, "REPORT_STAFF");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffNotIn(List<Integer> values) {
            addCriterion("REPORT_STAFF not in ", values, "REPORT_STAFF");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_STAFF between ", value1, value2, "REPORT_STAFF");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andReportStaffNotBetween(Integer value1, Integer value2) {
            addCriterion("REPORT_STAFF not between ", value1, value2, "REPORT_STAFF");
            return (CodeAidReportDataCriteria) this;
        }
        public CodeAidReportDataCriteria andUserNameIsNull() {
            addCriterion("USER_NAME is null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameIsNotNull() {
            addCriterion("USER_NAME is not null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameEqualTo(String value) {
            addCriterion("USER_NAME =", value, "USER_NAME");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameNotEqualTo(String value) {
            addCriterion("USER_NAME <>", value, "USER_NAME");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameGreaterThan(String value) {
            addCriterion("USER_NAME >", value, "USER_NAME");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("USER_NAME >=", value, "USER_NAME");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameLessThan(String value) {
            addCriterion("USER_NAME <", value, "USER_NAME");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameLessThanOrEqualTo(String value) {
            addCriterion("USER_NAME <=", value, "USER_NAME");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameLike(String value) {
            addCriterion("USER_NAME like ", value, "USER_NAME", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameNotLike(String value) {
            addCriterion("USER_NAME  not like ", value, "USER_NAME", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameLeftLike(String value) {
            addCriterion("USER_NAME like ", value, "USER_NAME", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameNotLeftLike(String value) {
            addCriterion("USER_NAME  not like ", value, "USER_NAME", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameRightLike(String value) {
            addCriterion("USER_NAME like ", value, "USER_NAME", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameNotRightLike(String value) {
            addCriterion("USER_NAME  not like ", value, "USER_NAME", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameIn(List<String> values) {
            addCriterion("USER_NAME  in ", values, "USER_NAME");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameNotIn(List<String> values) {
            addCriterion("USER_NAME not in ", values, "USER_NAME");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameBetween(String value1, String value2) {
            addCriterion("USER_NAME between ", value1, value2, "USER_NAME");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andUserNameNotBetween(String value1, String value2) {
            addCriterion("USER_NAME not between ", value1, value2, "USER_NAME");
            return (CodeAidReportDataCriteria) this;
        }
        public CodeAidReportDataCriteria andAttachmentIsNull() {
            addCriterion("ATTACHMENT is null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentIsNotNull() {
            addCriterion("ATTACHMENT is not null");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentEqualTo(String value) {
            addCriterion("ATTACHMENT =", value, "ATTACHMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentNotEqualTo(String value) {
            addCriterion("ATTACHMENT <>", value, "ATTACHMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentGreaterThan(String value) {
            addCriterion("ATTACHMENT >", value, "ATTACHMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentGreaterThanOrEqualTo(String value) {
            addCriterion("ATTACHMENT >=", value, "ATTACHMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentLessThan(String value) {
            addCriterion("ATTACHMENT <", value, "ATTACHMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentLessThanOrEqualTo(String value) {
            addCriterion("ATTACHMENT <=", value, "ATTACHMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentLike(String value) {
            addCriterion("ATTACHMENT like ", value, "ATTACHMENT", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentNotLike(String value) {
            addCriterion("ATTACHMENT  not like ", value, "ATTACHMENT", 1);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentLeftLike(String value) {
            addCriterion("ATTACHMENT like ", value, "ATTACHMENT", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentNotLeftLike(String value) {
            addCriterion("ATTACHMENT  not like ", value, "ATTACHMENT", 0);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentRightLike(String value) {
            addCriterion("ATTACHMENT like ", value, "ATTACHMENT", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentNotRightLike(String value) {
            addCriterion("ATTACHMENT  not like ", value, "ATTACHMENT", 2);
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentIn(List<String> values) {
            addCriterion("ATTACHMENT  in ", values, "ATTACHMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentNotIn(List<String> values) {
            addCriterion("ATTACHMENT not in ", values, "ATTACHMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentBetween(String value1, String value2) {
            addCriterion("ATTACHMENT between ", value1, value2, "ATTACHMENT");
            return (CodeAidReportDataCriteria) this;
        }

        public CodeAidReportDataCriteria andAttachmentNotBetween(String value1, String value2) {
            addCriterion("ATTACHMENT not between ", value1, value2, "ATTACHMENT");
            return (CodeAidReportDataCriteria) this;
        }

    }

    public static class CodeAidReportDataCriteria extends GeneratedCriteria {

        protected CodeAidReportDataCriteria() {
            super();
        }
    }

    public static class CodeAidReportDataCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected CodeAidReportDataCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected CodeAidReportDataCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected CodeAidReportDataCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected CodeAidReportDataCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected CodeAidReportDataCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected CodeAidReportDataCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}